import type { App, VNode } from 'vue'
import noneCom from './404.vue'
import { createVNode, render } from 'vue'
export default {
  install(app: App) {
    const cnode: VNode = createVNode(noneCom)
    render(cnode, document.body)
    app.config.globalProperties._noneCom = {
      show: cnode.component?.exposed?.onShow,
      hide: cnode.component?.exposed?.onHide,
    }
  }
} 